<?php
namespace core\lib;
use core\lib\Config;
class Model extends \PDO{
	public function __construct(){
		$db = Config::getAll('Database');
		try{
			parent::__construct($db['DSN'],$db['DB_USER'],$db['DB_PASSWD']);
		}catch(\PDOException $e){
			var_dump($e->getMessage());
		}
	}
}